Attribute Macros§

  • Define a memoized function using a cache store that implements cached::Cached (and cached::CachedAsync for async functions)
  • Define a memoized function using a cache store that implements cached::IOCached (and cached::IOCachedAsync for async functions)
  • Define a memoized function using a cache store that implements cached::Cached (and cached::CachedAsync for async functions). Function arguments are not used to identify a cached value, only one value is cached unless a time expiry is specified.